package com.zsrt.java.day20161226.hzj.lasthomework;

import java.util.Scanner;

public class Credit {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个有效的成绩");
		int source = sc.nextInt();
		sc.close();
		hw04(source);
	}
	public static void hw04(int source){
		if(source>=90){
			System.out.println("优秀");
		}else if(source>=80){
			System.out.println("良好");
		}else if(source>=60){
			System.out.println("及格");
		}else{
			System.out.println("不及格");
		}
	}
}
